package com.chenlei.order.controller;

import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/order")
public class Order {
    @RequestMapping("/add")
    public String getOrder(){
        return "order +1";
    }

    @RequestMapping("/getuser/{id}")
    public String getUserId(@PathVariable("id") String id){
        return "order +1"+id;
    }
}
